
class Car:
    def run(self):
        print("汽车在行驶")


class Person:
    def __init__(self, name):
        self.name = name
        # self.car = Car()  # 这里可以重复使用

    def go_to(self, car_tool: Car):
        car_tool.run()
        # self.car.run()
        # car = Car()
        # car.run()




lz = Person("老张")
car = Car()
lz.go_to(car)
